home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / TUTORIAL.BIN / ErrorException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-01-30  |  1.2 KB  |  18 lines

  1. package symantec.itools.db.net;
  2.  
  3. public class ErrorException extends NetException {
  4.    NetError _error;
  5.  
  6.    public ErrorException(NetError error) {
  7.       this._error = error;
  8.    }
  9.  
  10.    public NetError getError() {
  11.       return this._error;
  12.    }
  13.  
  14.    public String toString() {
  15.       return new String("ScaleWeb Server error: Severity: " + this._error.getSeverity() + " Code: " + this._error.getID() + " Description: " + this._error.getErrorString(0) + "; " + this._error.getErrorString(1) + "; " + this._error.getErrorString(2));
  16.    }
  17. }
  18.